#include	"config.h"

//n = {2**(6+i), i<=6
//    {2**(6+(i+6)/2)*(i%2?1.5:1), i>=6
typedef enum{
    Sysclk_64=0, //6位，1分频
    Sysclk_128,  //7位，1分频
    Sysclk_256,  //8位，1分频
    Sysclk_512,  //8位，2分频
    Sysclk_1K,   //10位，1分频
    Sysclk_2K,   //10位，2分频
    Sysclk_4K,   //10位，4分频
    Sysclk_6K,   //10位，6分频
    Sysclk_8K,   //10位，8分频
    Sysclk_12K,  //10位，12分频
}PWM_Freq;

void SetPWMFreq(PWM_Freq freq);
void SetMotor1024(u16 duty1024);
void MotorOff();